package cn.wzy.vo;


import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class DepartmentVo {
    private Long id;

    private String name;
    /**
     * 简介
     */
    private String intro;



    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date create_time;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date update_time;
    /**
     * 部门经理对应员工表
     */
    private Long manager_id;

    private String managerName;
    /**
     * 上级部门
     */
    private Long parent_id;

    private String parentDepartment;

    private String path;

    private Integer state;

//    子部门
    private List<DepartmentVo> children;
}
